package com.project.restaurant.mapper;

import com.project.restaurant.pojo.MealType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2022-10-11
 */
@Mapper
public interface MealTypeMapper extends BaseMapper<MealType> {

    @Results(id = "MealTypeResultMap",value = {
    })
    @MapKey("mealTypeId")
    @Select("select * from r_meal_type")
    public Map<Integer,MealType> selectAll();
}
